package com.hkd.user_service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hkd.common.api.ApiResponse;
import com.hkd.user_service.api.SysUserRoleService;
import com.hkd.user_service.api.entity.SysUserRole;
import com.hkd.user_service.mapper.SysUserRoleMapper;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author HKD
 * @date 2022/8/20 19:12
 */
@RestController
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {
    @Override
    public ApiResponse insertUserRole(SysUserRole userRole) {
        baseMapper.insert(userRole);
        return ApiResponse.ok();
    }
}
